package com.woniu.guoguo.dao;

import com.woniu.guoguo.model.MenuActive;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Richie
 * @since 2020-11-08
 */
public interface MenuActiveMapper extends BaseMapper<MenuActive> {

    @Update("update menu_active set active_number=active_number-1 where menu_id=#{menuId}")
    void decreaseOneActiveNumberByMenuId(int menuId);

}
